<%@page import="com.mmy.domain.sys.TSysOrg"%>
<%@page import="com.mmy.domain.sys.VSysOrg"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<script type="text/javascript" src="js/jsp/back/org/orgIndex.js"></script>
		<title>旅行社信息</title>
	</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<div id="menu-back">
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>旅行社管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
				<a href="backorgcheck">待审核列表</a>
					<!-- 用户信息展示 -->
					<div class="information" >
					<form  class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>旅行社信息管理
						</h4>
						
						<div class="input-container">
							<div class="select-condition">
							<span><label for="orgName"> 公司名称 ：</label></span>
							<input type="text" id="orgName" class="input-width" name="strOrgName"/>
							<c:choose>
				<c:when test="${tSysUser.getUserID()==0}">
							<span><label for="upOrgID">上级公司名称</label></span>
					
					<select class="input-select-vlign"  id="upOrgID"  name="strOrgID" >
								<option value=""><label>不限</label></option>
								<c:forEach var="lstSysOrg" items="${lstSysOrg}">
								<option value="${lstSysOrg.getOrgID()}">${lstSysOrg.getOrgName()}</option>
							</c:forEach>
					</select>
					<br>
					</c:when>
						<c:otherwise>
						</c:otherwise>
						</c:choose>
 <span><label for="orgZoneID">所属区域：</label></span>			
								<select class="input-select-vlign select-height" id="orgZoneID" name="Province" emptyOption="false"  onchange="changeSelect(this,'getLevel4','level3','City')" >
					<option value="">---请选择---</option>
					<c:forEach var="lstZoneProvince" items="${lstZoneProvince}">
						<option value="${lstZoneProvince.getZoneID()}">${lstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class='input-select-vlign select-height City' name='City' id="orgCityID" emptyOption='false' onchange="changeSelect(this,'getLevel8','level4','ZoneID')">
						<option value="">---请选择---</option>
						</select> 	
						<select class='input-select-vlign select-height ZoneID' name='ZoneID' id="zoneID" emptyOption='false' >
							<option value="">---请选择---</option> 
						</select>
						<input type="button" value="搜索" class="btn" onclick="searchOrg()" />
							<input type="button" class="btn" value="清空" onclick="clearOrg()" /> 
						<div class="at-float-right">
						<input type="button" class="btn " value="新建"  onclick="location.href='/mmy/backtocreateorg'" />
						<input type="button" class="btn " value="修改"  onclick="updateSysOrg()"/>
						<input type="button" class="btn"  value="删除" onclick="delSysOrg()"/>
						</div>
						</div>
						<div class="tableheight"><table class="info-table" id="sysOrg"></table></div>
						</div>	
						</form>
						</div>	
				</section>		
			</article>
		</main>
		</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>